package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author D
 * @since 2023-03-27 08:40:32
 */
@Getter
@Setter
@TableName("t_collect_and_test")
@Accessors(chain = true)
public class CollectAndTest {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户code
     */
    @TableField("user_code")
    private Long userCode;

    /**
     * 靶场code
     */
    @TableField("test_code")
    private Long testCode;

    /**
     * 得分
     */
    @TableField("score")
    private Integer score;

    /**
     * 1收藏，2实验，3收藏并实验
     */
    @TableField("collect_type")
    private Integer collectType;

    /**
     * 收藏时间
     */
    @TableField("collection_time")
    private Date collectionTime;

    /**
     * 实验时间
     */
    @TableField("test_time")
    private Date testTime;


}
